<template>
  <div>
    <header>
      <div class="header">
        <div class="wrapper">
          <div>
            <img
              class="navImg"
              src="https://i0.hdslb.com/bfs/manga-static/manga-pc/static/img/99e0a7fae4c4f.png@32w_32h"
              alt=""
            />
            <span>细狗漫画</span>
          </div>
          <div>
            <router-link to="/home">首页<span></span></router-link>

            <router-link to="/classification">分类<span></span></router-link>

            <router-link to="/navupdate">更新<span></span></router-link>
            <router-link to="/rankinglist">排行榜<span></span></router-link>
          </div>

          <div>
            <div>
              <input type="text" placeholder="点我搜索" />
            </div>
            <router-link to="/download">下载APP<span></span></router-link>
            <router-link to="/history">历史<span></span></router-link>
            <router-link to="/chasecartoon">追漫<span></span></router-link>
            <router-link to="/myuser"
              ><img
                src="https://i2.hdslb.com/bfs/face/1dff024ffcaf495e486e22b02b316435248caca9.jpg@34w.jpg"
                alt=""
            /></router-link>
          </div>
        </div>
      </div>
      <div class="defules"></div>
    </header>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;

  //抵消头部脱离文档的空缺
  .defules {
    width: 100%;
    height: 50px;
  }
  .header {
    width: 100%;
    background-color: #ffffff;
    height: 50px;
    position: fixed;
    top: 0;
    .wrapper {
      width: 1160px;
      height: 50px;
      line-height: 50px;
      margin: 0 auto;
      display: flex;

      margin: 0 auto;
      a {
        text-decoration: none;
        color: #000000cc;
      }
      .router-link-active {
        text-decoration: none;
        color: #32aaff;
        transition: color 0.5s ;
       span{
        display: block;
        width: 10px;
        height: 3px;
        background: #32aaff;
        margin: 0 auto;
        margin-top: -15px;
        transition: background 0.5s;
        
       }
      }

      > div:nth-child(1) {
        display: flex;
        margin-right: 40px;
        .navImg {
          width: 32px;
          height: 32px;
          margin-top: 9px;
        }
        span {
          color: #000000de;
          font-size: 15px;
          margin-left: 12px;
        }
      }
      div:nth-child(2) {
        display: flex;
        width: 536px;
        font-size: 14px;
        a {
          padding: 0 12px;
        }
      }
      div:nth-child(3) {
        display: flex;
        width: 450px;
        font-size: 14px;
        div:nth-child(1) {
          width: 180px;
          background-color: #f4f4f4;
          margin-top: 9px;
          height: 32px;
          line-height: 32px;
          border-radius: 16px;
          input {
            height: 32px;
            width: 160px;
            border-radius: 16px;
            border: none;
            outline: none;
            background-color: #f4f4f4;
            margin-left: 15px;
          }
        }

        a {
          padding: 0px 15px;
        }
        img {
          border-radius: 50%;
          margin-top: 9px;
        }
      }
    }
  }
}
</style>
